﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
* { margin: 0; padding: 0; }
#page{display:table;overflow:hidden;margin:0px auto;}
*:first-child+html #page {position:relative;}/*ie7*/
* html #page{position:relative;}/*ie6*/

#content_container{display:table-cell;vertical-align:middle;}
*:first-child+html #content_container{position:absolute;top:50%;}/*ie7*/
* html #content_container{position:absolute;top:50%;}/*ie6*/

*:first-child+html #content{position:relative;top:-50%;}/*ie7*/
* html #content{position:relative;top:-50%;}/*ie6*/

html,body{height:100%;}
#page{height:100%;width:231px;}
</style>
</head>
<body>
   <div id="page">
       <div id="content_container">
           <div id="content">
                 <form id="form1" runat="server" style="margin: auto; width: 231px; height: 100px;
    text-align: center;">
    <table>
        <tr>
            <td>
                用户名：
            </td>
            <td>
                <asp:TextBox ID="Username" runat="server" style="width:120px;"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                密码：
            </td>
            <td>
                <asp:TextBox ID="Password" runat="server" TextMode="Password" style="width:120px;"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td colspan="2" align="center">
                <asp:Label ID="Message" runat="server" Text="用户名和/或密码错误！" Visible="false" style="color:Red;"></asp:Label>
                <asp:Button ID="LoginButton" runat="server" Text="登录" style="width:80px;" 
                    onclick="LoginButton_Click" />
            </td>
        </tr>
    </table>
    </form>
           </div>
       </div>
   </div>
</body>
</html>
